function setImg(url){
    $("#cropbox,#preview").attr("src",url);
    $("#imgSrc").val(url);
    var image = new Image();
        image.src = url;

    $("#cropbox").css({
        // "width":boundx+'px',
        // "height":boundy+'px',
        "display":"none"
    })
    
    $("#preview").attr("src",url);
    var radio = image.width / image.height;
    var distRaido = $(".srcImg").width()/$(".srcImg").height();
    if(radio > distRaido){
        $("#cropbox").css("width","100%");
        scopePic = image.width / $(".srcImg").width();
    }else{
        $("#cropbox").css("height","100%");
        scopePic = image.height / $(".srcImg").height();
    }
    // $("#cropbox").css("visibility","visible");
    imageCrop();
}

$(document).on("change","#fileupload",function(e){
    if(isSet && $("#fileupload").get(0).files[0]){
        console.log( $("#fileupload").get(0).files[0])
    }
    $(".imgModel").show();
    picture(this)
});
